﻿<Window xmlns:Controls="clr-namespace:Wpf.Controls;assembly=Wpf.TabControl" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon"
        xmlns:Model="clr-namespace:LogWare.Model" x:Name="MainWnd" x:Class="LogWare.MainWindow"
        Title="Λογιστική Διαχείριση" Height="700" Width="1024" Icon="Images\pack32.ico"
		DataContext="{Binding Main, Source={StaticResource Locator}}">
	<Window.Resources>


	</Window.Resources>
	<Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <ribbon:Ribbon  Grid.Row="0" Grid.Column="0" x:Name="MainRib">
			<ribbon:Ribbon.ApplicationMenu>
				<ribbon:RibbonApplicationMenu SmallImageSource="Images\pack16.png">
					<ribbon:RibbonApplicationMenuItem Header="Επιλογές" 
                                                      Command="{Binding Path=OptionsCommand}"
                                                      x:Name="OptionsMenu"
                                                      ImageSource="Images\options.gif"/>
				</ribbon:RibbonApplicationMenu>
			</ribbon:Ribbon.ApplicationMenu>

			<ribbon:RibbonTab Header="Πελάτες" >
				<ribbon:RibbonGroup Header="Τιμολόγιο" >
					<ribbon:RibbonButton LargeImageSource="Images\print.gif" Label="Εκτύπωση" Command="{Binding Path=PrintCommand}" >
					</ribbon:RibbonButton>
				</ribbon:RibbonGroup>
			</ribbon:RibbonTab>
			<ribbon:RibbonTab Header="Προϊόντα" />
            <ribbon:RibbonTab Header="Παραγγελίες" />
            <ribbon:RibbonTab Header="Προμηθευτές" />
            <ribbon:RibbonTab Header="Προσωπικό" />
			<ribbon:RibbonTab Header="Εργαλεία">
				<ribbon:RibbonButton >
					
				</ribbon:RibbonButton>
				
			</ribbon:RibbonTab>
		</ribbon:Ribbon>
		<Controls:TabControl Margin="5" x:Name="tabControl" Grid.Row="1" TabStripPlacement="{Binding ElementName=listBox, Path=SelectedItem}" 
				TabItemMinWidth="150" TabItemMaxWidth="300" TabItemMinHeight="30" TabItemMaxHeight="50" VerticalContentAlignment="Center">

			<!-- Properties for setting the background for the tab items depending on their current state -->
			<!-- These brushes give the contro an IE7 type look-->
			<Controls:TabControl.TabItemNormalBackground>
				<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
					<GradientStop Color="#FFFCFDFD" Offset="0"/>
					<GradientStop Color="#FFE5EAF5" Offset="0.3"/>
					<GradientStop Color="#FFCFD7EB" Offset="0.3"/>
					<GradientStop Color="#FFE0E5F5" Offset="0.7"/>
					<GradientStop Color="#FFECEEFC" Offset="1"/>
				</LinearGradientBrush>
			</Controls:TabControl.TabItemNormalBackground>

			<Controls:TabControl.TabItemSelectedBackground>
				<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
					<GradientStop Color="#FFFBFDFE" Offset="0"/>
					<GradientStop Color="#FFEAF6FB" Offset="0.3"/>
					<GradientStop Color="#FFCEE7FA" Offset="0.3"/>
					<GradientStop Color="#FFB9D1FA" Offset="1"/>
				</LinearGradientBrush>
			</Controls:TabControl.TabItemSelectedBackground>

			<Controls:TabControl.TabItemMouseOverBackground>
				<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
					<GradientStop Color="#FFFCFDFD" Offset="0"/>
					<GradientStop Color="#FFC6DDF7" Offset="0.3"/>
					<GradientStop Color="#FF99C6EE" Offset="0.3"/>
					<GradientStop Color="#FFB6D6F1" Offset="0.7"/>
					<GradientStop Color="#FFD9E9F9" Offset="1"/>
				</LinearGradientBrush>
			</Controls:TabControl.TabItemMouseOverBackground>

			<!-- 
					Note, if you Set the Width/MaxWidth/MinWidth properties on individual tab items as shown below, these values will be ignored by the
					build in auto tabitem sizing implementation of the TabControl.
					
					to set size constraints you should use the TabItemMinWidth/TabItemMaxWidth/TabItemMinHeight/TabItemMaxHeight properties of the TabControl to set size constraints
					on tab items, these values apply to ALL Tabitems in the Control.
				 -->

			<Controls:TabItem  Width="350" MaxWidth="250" MinWidth="250">
				<!-- 
						we could use the header attribute to set the header if it is text
						but wrapping it in a textblock gives use character ellipsis and wrapping options etc
					-->
				<Controls:TabItem.Header>
					<TextBlock Text="Blank Page" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
				</Controls:TabItem.Header>

				<!-- Add an Icon to the TabItem, this con is also used in the DropDown context menu-->
				<Controls:TabItem.Icon>
					<Image Source="Images/pack16.png" Height="16" Width="16" Margin="2,0,2,0" VerticalAlignment="Center"/>
				</Controls:TabItem.Icon>


			</Controls:TabItem>
		</Controls:TabControl>



		<StatusBar Grid.Row="2" Grid.Column="0" x:Name="MainSB">
			
		</StatusBar>
	</Grid>
</Window>
